<?php
namespace ZyucMini\Components\Project\Services;

use ZyucMini\Components\Connections\Connections;
use ZyucMini\Components\Project\Models\Project AS ProjectModel;

class Project {

    public function __construct() {
        Connections::initAll();
    }

    public function getMap() {
        $proj_model = new ProjectModel();
        $projs = $proj_model->getAllList();
        $projMap = [];
        foreach($projs as $proj) {
            $projMap[$proj['proj_id']] = $proj['proj_name'];
        }
        return $projMap;
    }
    
}
?>